#ifndef TRIGSTATEMACHINE_H
#define TRIGSTATEMACHINE_H

#include "Hardware.h"
#include "isr_handler.h"

long long int Trigger_Load;

enum Tim_States { S0_rel_on, S1_tim_waiting, S2_rel_off};
enum Tim_Events { E0_notrig, E1_trig, E2_timeout};

Tim_States SM_Tim_State;
Tim_Events SM_Tim_Event;

int SM_Tim_Killsig;

void s0e0(void);
void s0e1(void);
void s0e2(void);

void s1e0(void);
void s1e1(void);
void s1e2(void);

void s2e0(void);
void s2e1(void);
void s2e2(void);
char BarGraph(long long int position, long long int span);

#include "TrigStateMachine.c"
#endif